package com.demo.springboot;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {

    @Bean(initMethod = "init")
    public User createUser(){
        return new User();
    }

    @Bean
    public User createUse2(){
        return new User();
    }
}
